<?php

$html = file_get_contents('films.txt');
preg_match_all('@(?s)">电影<(.+?)>剧集<@', $html, $matches, PREG_SET_ORDER);
$html = $matches[0][1];
preg_match_all('@(?s)<a href="([^"]+)" title="([^"]+).+?data-original="([^"]+)"@'
    , $html, $matches, PREG_SET_ORDER);
foreach ($matches as $key => $match) {
    echo "第", $key + 1, "部电影\n";
    echo "\t{$match[1]}\n";
    echo "\t{$match[2]}\n";
    echo "\t{$match[3]}\n";
}